\doxysection{projdefs.\+h}
\hypertarget{projdefs_8h_source}{}\label{projdefs_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Middlewares/Third\_Party/FreeRTOS/Source/include/projdefs.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Middlewares/Third\_Party/FreeRTOS/Source/include/projdefs.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ FreeRTOS\ Kernel\ V10.3.1}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ Copyright\ (C)\ 2020\ Amazon.com,\ Inc.\ or\ its\ affiliates.\ \ All\ Rights\ Reserved.}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ Permission\ is\ hereby\ granted,\ free\ of\ charge,\ to\ any\ person\ obtaining\ a\ copy\ of}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ this\ software\ and\ associated\ documentation\ files\ (the\ "{}Software"{}),\ to\ deal\ in}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ the\ Software\ without\ restriction,\ including\ without\ limitation\ the\ rights\ to}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ use,\ copy,\ modify,\ merge,\ publish,\ distribute,\ sublicense,\ and/or\ sell\ copies\ of}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ the\ Software,\ and\ to\ permit\ persons\ to\ whom\ the\ Software\ is\ furnished\ to\ do\ so,}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ subject\ to\ the\ following\ conditions:}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ The\ above\ copyright\ notice\ and\ this\ permission\ notice\ shall\ be\ included\ in\ all}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ copies\ or\ substantial\ portions\ of\ the\ Software.}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ THE\ SOFTWARE\ IS\ PROVIDED\ "{}AS\ IS"{},\ WITHOUT\ WARRANTY\ OF\ ANY\ KIND,\ EXPRESS\ OR}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ IMPLIED,\ INCLUDING\ BUT\ NOT\ LIMITED\ TO\ THE\ WARRANTIES\ OF\ MERCHANTABILITY,\ FITNESS}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ FOR\ A\ PARTICULAR\ PURPOSE\ AND\ NONINFRINGEMENT.\ IN\ NO\ EVENT\ SHALL\ THE\ AUTHORS\ OR}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ COPYRIGHT\ HOLDERS\ BE\ LIABLE\ FOR\ ANY\ CLAIM,\ DAMAGES\ OR\ OTHER\ LIABILITY,\ WHETHER}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ IN\ AN\ ACTION\ OF\ CONTRACT,\ TORT\ OR\ OTHERWISE,\ ARISING\ FROM,\ OUT\ OF\ OR\ IN}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ CONNECTION\ WITH\ THE\ SOFTWARE\ OR\ THE\ USE\ OR\ OTHER\ DEALINGS\ IN\ THE\ SOFTWARE.}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ http://www.FreeRTOS.org}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *\ http://aws.amazon.com/freertos}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00025\ \textcolor{comment}{\ *\ 1\ tab\ ==\ 4\ spaces!}}
\DoxyCodeLine{00026\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#ifndef\ PROJDEFS\_H}}
\DoxyCodeLine{00029\ \textcolor{preprocessor}{\#define\ PROJDEFS\_H}}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{comment}{/*}}
\DoxyCodeLine{00032\ \textcolor{comment}{\ *\ Defines\ the\ prototype\ to\ which\ task\ functions\ must\ conform.\ \ Defined\ in\ this}}
\DoxyCodeLine{00033\ \textcolor{comment}{\ *\ file\ to\ ensure\ the\ type\ is\ known\ before\ portable.h\ is\ included.}}
\DoxyCodeLine{00034\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00035\ \textcolor{keyword}{typedef}\ void\ (*TaskFunction\_t)(\ \textcolor{keywordtype}{void}\ *\ );}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{comment}{/*\ Converts\ a\ time\ in\ milliseconds\ to\ a\ time\ in\ ticks.\ \ This\ macro\ can\ be}}
\DoxyCodeLine{00038\ \textcolor{comment}{overridden\ by\ a\ macro\ of\ the\ same\ name\ defined\ in\ FreeRTOSConfig.h\ in\ case\ the}}
\DoxyCodeLine{00039\ \textcolor{comment}{definition\ here\ is\ not\ suitable\ for\ your\ application.\ */}}
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\#ifndef\ pdMS\_TO\_TICKS}}
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\ \ \ \ \#define\ pdMS\_TO\_TICKS(\ xTimeInMs\ )\ (\ (\ TickType\_t\ )\ (\ (\ (\ TickType\_t\ )\ (\ xTimeInMs\ )\ *\ (\ TickType\_t\ )\ configTICK\_RATE\_HZ\ )\ /\ (\ TickType\_t\ )\ 1000\ )\ )}}
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#define\ pdFALSE\ \ \ \ \ \ \ \ \ (\ (\ BaseType\_t\ )\ 0\ )}}
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#define\ pdTRUE\ \ \ \ \ \ \ \ \ \ (\ (\ BaseType\_t\ )\ 1\ )}}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#define\ pdPASS\ \ \ \ \ \ \ \ \ \ (\ pdTRUE\ )}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#define\ pdFAIL\ \ \ \ \ \ \ \ \ \ (\ pdFALSE\ )}}
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#define\ errQUEUE\_EMPTY\ \ (\ (\ BaseType\_t\ )\ 0\ )}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#define\ errQUEUE\_FULL\ \ \ (\ (\ BaseType\_t\ )\ 0\ )}}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \textcolor{comment}{/*\ FreeRTOS\ error\ definitions.\ */}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#define\ errCOULD\_NOT\_ALLOCATE\_REQUIRED\_MEMORY\ \ \ (\ -\/1\ )}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#define\ errQUEUE\_BLOCKED\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\ -\/4\ )}}
\DoxyCodeLine{00055\ \textcolor{preprocessor}{\#define\ errQUEUE\_YIELD\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\ -\/5\ )}}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ \textcolor{comment}{/*\ Macros\ used\ for\ basic\ data\ corruption\ checks.\ */}}
\DoxyCodeLine{00058\ \textcolor{preprocessor}{\#ifndef\ configUSE\_LIST\_DATA\_INTEGRITY\_CHECK\_BYTES}}
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\ \ \ \ \#define\ configUSE\_LIST\_DATA\_INTEGRITY\_CHECK\_BYTES\ 0}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#if(\ configUSE\_16\_BIT\_TICKS\ ==\ 1\ )}}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\ \ \ \ \#define\ pdINTEGRITY\_CHECK\_VALUE\ 0x5a5a}}
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\ \ \ \ \#define\ pdINTEGRITY\_CHECK\_VALUE\ 0x5a5a5a5aUL}}
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ \textcolor{comment}{/*\ The\ following\ errno\ values\ are\ used\ by\ FreeRTOS+\ components,\ not\ FreeRTOS}}
\DoxyCodeLine{00069\ \textcolor{comment}{itself.\ */}}
\DoxyCodeLine{00070\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_NONE\ \ \ \ \ \ \ \ \ \ \ 0\ \ \ }\textcolor{comment}{/*\ No\ errors\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00071\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOENT\ \ \ \ \ \ \ \ \ 2\ \ \ }\textcolor{comment}{/*\ No\ such\ file\ or\ directory\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00072\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EINTR\ \ \ \ \ \ \ \ \ \ 4\ \ \ }\textcolor{comment}{/*\ Interrupted\ system\ call\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EIO\ \ \ \ \ \ \ \ \ \ \ \ 5\ \ \ }\textcolor{comment}{/*\ I/O\ error\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00074\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENXIO\ \ \ \ \ \ \ \ \ \ 6\ \ \ }\textcolor{comment}{/*\ No\ such\ device\ or\ address\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00075\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EBADF\ \ \ \ \ \ \ \ \ \ 9\ \ \ }\textcolor{comment}{/*\ Bad\ file\ number\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00076\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EAGAIN\ \ \ \ \ \ \ \ \ 11\ \ }\textcolor{comment}{/*\ No\ more\ processes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EWOULDBLOCK\ \ \ \ 11\ \ }\textcolor{comment}{/*\ Operation\ would\ block\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00078\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOMEM\ \ \ \ \ \ \ \ \ 12\ \ }\textcolor{comment}{/*\ Not\ enough\ memory\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EACCES\ \ \ \ \ \ \ \ \ 13\ \ }\textcolor{comment}{/*\ Permission\ denied\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00080\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EFAULT\ \ \ \ \ \ \ \ \ 14\ \ }\textcolor{comment}{/*\ Bad\ address\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00081\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EBUSY\ \ \ \ \ \ \ \ \ \ 16\ \ }\textcolor{comment}{/*\ Mount\ device\ busy\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EEXIST\ \ \ \ \ \ \ \ \ 17\ \ }\textcolor{comment}{/*\ File\ exists\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00083\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EXDEV\ \ \ \ \ \ \ \ \ \ 18\ \ }\textcolor{comment}{/*\ Cross-\/device\ link\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00084\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENODEV\ \ \ \ \ \ \ \ \ 19\ \ }\textcolor{comment}{/*\ No\ such\ device\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOTDIR\ \ \ \ \ \ \ \ 20\ \ }\textcolor{comment}{/*\ Not\ a\ directory\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EISDIR\ \ \ \ \ \ \ \ \ 21\ \ }\textcolor{comment}{/*\ Is\ a\ directory\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EINVAL\ \ \ \ \ \ \ \ \ 22\ \ }\textcolor{comment}{/*\ Invalid\ argument\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00088\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOSPC\ \ \ \ \ \ \ \ \ 28\ \ }\textcolor{comment}{/*\ No\ space\ left\ on\ device\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ESPIPE\ \ \ \ \ \ \ \ \ 29\ \ }\textcolor{comment}{/*\ Illegal\ seek\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EROFS\ \ \ \ \ \ \ \ \ \ 30\ \ }\textcolor{comment}{/*\ Read\ only\ file\ system\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00091\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EUNATCH\ \ \ \ \ \ \ \ 42\ \ }\textcolor{comment}{/*\ Protocol\ driver\ not\ attached\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00092\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EBADE\ \ \ \ \ \ \ \ \ \ 50\ \ }\textcolor{comment}{/*\ Invalid\ exchange\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00093\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EFTYPE\ \ \ \ \ \ \ \ \ 79\ \ }\textcolor{comment}{/*\ Inappropriate\ file\ type\ or\ format\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00094\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENMFILE\ \ \ \ \ \ \ \ 89\ \ }\textcolor{comment}{/*\ No\ more\ files\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00095\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOTEMPTY\ \ \ \ \ \ 90\ \ }\textcolor{comment}{/*\ Directory\ not\ empty\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00096\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENAMETOOLONG\ \ \ 91\ \ }\textcolor{comment}{/*\ File\ or\ path\ name\ too\ long\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00097\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EOPNOTSUPP\ \ \ \ \ 95\ \ }\textcolor{comment}{/*\ Operation\ not\ supported\ on\ transport\ endpoint\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00098\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOBUFS\ \ \ \ \ \ \ \ 105\ }\textcolor{comment}{/*\ No\ buffer\ space\ available\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00099\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOPROTOOPT\ \ \ \ 109\ }\textcolor{comment}{/*\ Protocol\ not\ available\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00100\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EADDRINUSE\ \ \ \ \ 112\ }\textcolor{comment}{/*\ Address\ already\ in\ use\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00101\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ETIMEDOUT\ \ \ \ \ \ 116\ }\textcolor{comment}{/*\ Connection\ timed\ out\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00102\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EINPROGRESS\ \ \ \ 119\ }\textcolor{comment}{/*\ Connection\ already\ in\ progress\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00103\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EALREADY\ \ \ \ \ \ \ 120\ }\textcolor{comment}{/*\ Socket\ already\ connected\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00104\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EADDRNOTAVAIL\ \ 125\ }\textcolor{comment}{/*\ Address\ not\ available\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00105\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EISCONN\ \ \ \ \ \ \ \ 127\ }\textcolor{comment}{/*\ Socket\ is\ already\ connected\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00106\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOTCONN\ \ \ \ \ \ \ 128\ }\textcolor{comment}{/*\ Socket\ is\ not\ connected\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00107\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ENOMEDIUM\ \ \ \ \ \ 135\ }\textcolor{comment}{/*\ No\ medium\ inserted\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00108\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_EILSEQ\ \ \ \ \ \ \ \ \ 138\ }\textcolor{comment}{/*\ An\ invalid\ UTF-\/16\ sequence\ was\ encountered.\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00109\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_ERRNO\_ECANCELED\ \ \ \ \ \ 140\ }\textcolor{comment}{/*\ Operation\ canceled.\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00111\ \textcolor{comment}{/*\ The\ following\ endian\ values\ are\ used\ by\ FreeRTOS+\ components,\ not\ FreeRTOS}}
\DoxyCodeLine{00112\ \textcolor{comment}{itself.\ */}}
\DoxyCodeLine{00113\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_LITTLE\_ENDIAN\ \ \ \ \ \ \ \ 0}}
\DoxyCodeLine{00114\ \textcolor{preprocessor}{\#define\ pdFREERTOS\_BIG\_ENDIAN\ \ \ \ \ \ \ \ \ \ \ 1}}
\DoxyCodeLine{00115\ }
\DoxyCodeLine{00116\ \textcolor{comment}{/*\ Re-\/defining\ endian\ values\ for\ generic\ naming.\ */}}
\DoxyCodeLine{00117\ \textcolor{preprocessor}{\#define\ pdLITTLE\_ENDIAN\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ pdFREERTOS\_LITTLE\_ENDIAN}}
\DoxyCodeLine{00118\ \textcolor{preprocessor}{\#define\ pdBIG\_ENDIAN\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ pdFREERTOS\_BIG\_ENDIAN}}
\DoxyCodeLine{00119\ }
\DoxyCodeLine{00120\ }
\DoxyCodeLine{00121\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ PROJDEFS\_H\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00122\ }
\DoxyCodeLine{00123\ }
\DoxyCodeLine{00124\ }

\end{DoxyCode}
